package com.infore.siteManagement.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import com.infore.siteManagement.entity.ItemAndStation;
import java.lang.String;

@Repository
public interface IitemAndStationRepository
		extends JpaRepository<ItemAndStation, String>, JpaSpecificationExecutor<ItemAndStation> {

	@Transactional
	@Modifying
	int deleteByItemIdIn(List<String> itemIds);

	@Transactional
	@Modifying
	int deleteByStationIdIn(List<String> stationIds);
	
	List<ItemAndStation> findByStationIdIn(List<String> stationid);
}
